return false;
}
- _sessionModeCanUseExtension(uuid) {
- if (!Main.sessionMode.allowExtensions)
- return false;
-
- if (!this._extensionSupportsSessionMode(uuid))
- return false;
-
- return true;
- }
-
_callExtensionDisable(uuid) {
let extension = this.lookup(uuid);
if (!extension)
}
_callExtensionEnable(uuid) {
- if (!this._sessionModeCanUseExtension(uuid))
+ if (!this._extensionSupportsSessionMode(uuid))
return;
let extension = this.lookup(uuid);
}
_callExtensionInit(uuid) {
- if (!this._sessionModeCanUseExtension(uuid))
+ if (!this._extensionSupportsSessionMode(uuid))
return false;
let extension = this.lookup(uuid);
}
_sessionUpdated() {
- // For now sessionMode.allowExtensions controls extensions from both the
- // 'enabled-extensions' preference and the sessionMode.enabledExtensions
- // property; it might make sense to make enabledExtensions independent
- // from allowExtensions in the future
- if (Main.sessionMode.allowExtensions) {
- // Take care of added or removed sessionMode extensions
- this._onEnabledExtensionsChanged();
- this._enableAllExtensions();
- } else {
- this._disableAllExtensions();
- }
+ // Take care of added or removed sessionMode extensions
+ this._onEnabledExtensionsChanged();
+ this._enableAllExtensions();
}
};
Signals.addSignalMethods(ExtensionManager.prototype);
showCalendarEvents: false,
showWelcomeDialog: false,
allowSettings: false,
- allowExtensions: false,
allowScreencast: false,
enabledExtensions: [],
hasRunDialog: false,
},
'gdm': {
- allowExtensions: true,
hasNotifications: true,
isGreeter: true,
isPrimary: true,
},
'unlock-dialog': {
- allowExtensions: true,
isLocked: true,
unlockDialog: undefined,
components: ['polkitAgent', 'telepathyClient'],
showCalendarEvents: true,
showWelcomeDialog: true,
allowSettings: true,
- allowExtensions: true,
allowScreencast: true,
hasRunDialog: true,
hasWorkspaces: true,